module.exports = {
  /*
   ** Headers of the page
   */
  head: {
    title: '枫恋的博客',
    meta: [{
        charset: 'utf-8'
      },
      {
        name: 'viewport',
        content: 'width=device-width, initial-scale=1'
      },
      {
        hid: 'description',
        name: 'description',
        content: '前端,前端博客,技术,枫恋的前端博客,js学习,nuxt学习,mysql学习,前端知识,next,react,博客'
      },
      {
        hid: 'keywords',
        name: 'keywords',
        content: '前端,前端博客,技术,枫恋的前端博客,js学习,nuxt学习,mysql学习,前端知识,next,react'
      }
    ],
    link: [{
      rel: 'icon',
      type: 'image/x-icon',
      href: '/favicon.ico'
    }],
    /*
     ** global js 
     */
    script: [
      {src:'//cdn.bootcss.com/jquery/3.0.0-rc1/jquery.slim.min.js'},
      {src:'//hm.baidu.com/hm.js?8a20f0e9d9748f8d047166b99c7dc9c0'}
    ],
  },
  /*
   ** Global CSS
   */
  css: ['~/assets/css/main.scss'],
  /*
   ** Add axios globally
   */
  plugins:[
            {src:'~/plugins/marked'},
            {src:'~/plugins/moment'},
            {src:'~/plugins/ga',ssr:false}
          ],
  build: {
    vendor: ['axios','lodash','moment','marked'],
    /*
     ** Run ESLINT on save
     */
    extend(config, ctx) {
      if (ctx.isClient) {
        // config.module.rules.push({
        //   enforce: 'pre',
        //   test: /\.(js|vue)$/,
        //   loader: 'eslint-loader',
        //   exclude: /(node_modules)/
        // })
      }
    }
  }
}